package com.itcast.service;

import com.alipay.api.AlipayApiException;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itcast.pojo.Orders;
import com.itcast.pojo.dto.OrderDTO;

import javax.xml.bind.ValidationException;
import java.io.UnsupportedEncodingException;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ${author}
 * @since 2020-06-19
 */
public interface Ordersservice extends IService<Orders> {

    String insertOrder(OrderDTO dto) throws UnsupportedEncodingException, AlipayApiException;

    Object getOrderInfo(String userId) throws ValidationException;
}
